package com.kingyun.gpsinspection.purificationservice.facade.service.jsm.workcellinfo;

import com.alibaba.fastjson.JSONObject;
import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.Employee;
import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.WorkCellInfo;

import java.util.Map;

/**
 * Created by huangxueqian@cqhilink.com on 2016/12/8.
 * 操作单元服务
 */
public interface JsmWorkCellInfoService {

    /**
     * 新增操作单元
     * @param  workCellInfo
     * @return
     * @throws Exception
     */
    public Integer addWorkCellInfo(WorkCellInfo workCellInfo, Employee employee) throws Exception;

    /**
     * workCellInfo
     * @return
     */
    public JSONObject toTable(WorkCellInfo workCellInfo) throws Exception;
    /**
     * 根据参数删除操作单元
     * @param maps
     * @return
     * @throws Exception
     */
    public Integer delWorkCellInfo(Map maps) throws Exception;

    /**
     *
     * @param workCellInfo
     * @return
     * @throws Exception
     */
    public WorkCellInfo queryById(WorkCellInfo workCellInfo) throws Exception;


}
